package com.jihu.design.behavioral.strategy;

/**
 * @author jihu
 * @date 2021/9/27
 */
public class TeamGNR {

    //抽取游戏策略的算法，并进行引用
    private GameStrategy gameStrategy;

    public void setGameStrategy(GameStrategy gameStrategy) {
        this.gameStrategy = gameStrategy;
    }

    public void stratGame(){
        System.out.println("游戏开始");

        //游戏策略
        gameStrategy.warStrategy();

        System.out.println("win......");
    }
}
